//
//  DetailHeroTableViewCell.m
//  LOL_JewelBox
//
//  Created by dllo on 15/4/22.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "DetailHeroTableViewCell.h"

@implementation DetailHeroTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.titleLabel = [[UILabel alloc] init];
        [self.contentView addSubview:self.titleLabel];
        [_titleLabel release];

        self.authorLabel = [[UILabel alloc] init];
        [self.contentView addSubview:self.authorLabel];
        [_authorLabel release];

        self.serverLabel = [[UILabel alloc] init];
        [self.contentView addSubview:self.serverLabel];
        [_serverLabel release];


        self.combatLabel = [[UILabel alloc] init];
        [self.contentView addSubview:self.combatLabel];
        [_combatLabel release];

        self.combatView = [[UIImageView alloc] init];
        [self.contentView addSubview:self.combatView];
        [_combatView release];

        self.equipView1 = [[UIImageView alloc] init];
        [self.contentView addSubview:self.equipView1];
        [_equipView1 release];

        self.equipView2 = [[UIImageView alloc] init];
        [self.contentView addSubview:self.equipView2];
        [_equipView2 release];

        self.equipView3 = [[UIImageView alloc] init];
        [self.contentView addSubview:self.equipView3];
        [_equipView3 release];

        self.equipView4 = [[UIImageView alloc] init];
        [self.contentView addSubview:self.equipView4];
        [_equipView4 release];

        self.equipView5 = [[UIImageView alloc] init];
        [self.contentView addSubview:self.equipView5];
        [_equipView5 release];

        self.equipView6 = [[UIImageView alloc] init];
        [self.contentView addSubview:self.equipView6];
        [_equipView6 release];
        
        
        
        
        
        
    }
    
    return self;



}

- (void)layoutSubviews
{

[super layoutSubviews];

    self.titleLabel.frame = CGRectMake(5, 5, 200, 20);
    self.authorLabel.frame = CGRectMake(200, 5, 150, 20);
    self.serverLabel.frame = CGRectMake(5, 30, 120, 20);
    self.combatView.frame = CGRectMake(130, 30, 20, 20);
    self.combatLabel.frame = CGRectMake(155, 30, 120, 20);

    self.equipView1.frame = CGRectMake(5, 60, 50, 50);
    self.equipView2.frame = CGRectMake(55, 60, 50, 50);
    self.equipView3.frame = CGRectMake(105, 60, 50, 50);
    self.equipView4.frame = CGRectMake(155, 60, 50,50);
    self.equipView5.frame = CGRectMake(205, 60, 50, 50);
    self.equipView6.frame = CGRectMake(255, 60, 50, 50);


}
- (void)dealloc
{  [_titleLabel release];
    [_authorLabel release];
    [_serverLabel release];
    [_combatLabel release];
    [_combatView release];
    [_equipView1 release];
    [_equipView2 release];
    [_equipView3 release];
    [_equipView4 release];
    [_equipView5 release];
    [_equipView6 release];
    [super dealloc];

    
}


@end
